/* Includes ------------------------------------------------------------------*/
#include "Iwdg.h"
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/
/* extern variables ---------------------------------------------------------*/

void IWDG_Init(uint8_t prer,uint16_t rlr)
{
    IWDG_WriteAccessCmd(IWDG_WriteAccess_Enable); //使能对IWDG->PR IWDG->RLR的写
    IWDG_SetPrescaler(prer); //设置IWDG分频系数
    IWDG_SetReload(rlr);   //设置IWDG装载值5 e+ T1 G  n) {. h* T
    IWDG_ReloadCounter(); //reload //重载看门狗计数值
    IWDG_Enable();       //使能看门狗
}

